package com.space.school.services.impl;

import com.space.school.dao.OrderDao;
import com.space.school.dao.impl.OrderDaoImpl;
import com.space.school.domain.Order;
import com.space.school.domain.OrderMaster;
import com.space.school.domain.ProductInfo;
import com.space.school.services.OrderService;

import java.util.List;

public class OrderServiceImpl implements OrderService {
    OrderDao orderDao=new OrderDaoImpl();
    @Override
    public List<ProductInfo> productList() {
        return orderDao.productList();
    }

    @Override
    public void insert(Order order) {
        orderDao.insert(order);
    }

    @Override
    public void delete(String order_id) {
        orderDao.delete(order_id);
    }

    @Override
    public List<OrderMaster> totalList(String order_id) {
        return orderDao.totalList(order_id);
    }

    @Override
    public void insert(OrderMaster orderMaster) {
        orderDao.insert(orderMaster);
    }
}
